<script setup>
import * as util from "../../../main"
console.log("util", util);
import { ref } from "vue"
const { flatArray } = util
const amount = ref()
const input = (val) => {
  amount.value = limitAmount(val)
}
const aa = {
  name: "zs",
  age: 12,
  f: [15, 23,],
  a: () => { return true },
  c: {
    gg: "ad"
  }
}
const arr = [1, 2, 3, [12, 23, [1, 12]]]
// console.log("flagArray(arr)=>[1,2,3,12,23,1,12]", flatArray(arr));
console.log(arr.flat(Infinity),"aaaaaaaaa");
</script>

<template>
  <div>
    <el-input v-model="amount" @input="input" />
    <div v-copy>fgfdgdf复制</div>
    <span v-draggable class="draggable">拖拽</span>
  </div>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}

.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
.draggable{
  position: absolute;
  top: 0;
  left: 0;
}
</style>
